package com.woniuxy.usercoachassemble.entity;



import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author Lucas
 * @since 2020-07-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Invitation implements Serializable {

    private static final long serialVersionUID=1L;

    private Integer invitationId;

    private Integer userId;
    private  Integer votes;

    private String content;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime invitationTime;

    /**
     * 帖子的权限
     */
    private Integer invitationPrivilege;
    private String imgSrc;
    //用户的昵称 不交给batis管理
    @TableField(exist = false)
    private String nickName;
    //用户离你的位置,单位米
    @TableField(exist = false)
    private double length;
}
